package com.seashop.vo;

import lombok.Data;

import java.io.Serializable;

/**
 * @author moredln
 * @desc 商品简要信息
 * @date 2020-11-09 12:55
 */
@Data
public class ProductSimpleVO implements Serializable {

    private static final long serialVersionUID = 1538896293888138659L;
    private Integer productId;
    private String aliSpuId;
    private String title;
    private String titleZh;
    private String titleTh;
    private String titleId;
    private String titleUr;
    private String image;
    private String imageLink;
    private String price;
    private String salePrice;
    private String priceMin;
    private String priceMarket;
    private Double baseCommission;
    private Double originCommission;
    private Double commissionShopkeeper;
    private Double commissionMember;
    private String from;
    private String fromUrl;
    private String status;
    private String currency;
    private String platform = "opshop";
    //商品分享值
    private Integer share;
    //商品所在区域
    private Integer sellArea;

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof ProductSimpleVO) {
            ProductSimpleVO simpleDto = (ProductSimpleVO) obj;
            return this.getProductId().equals(simpleDto.getProductId());
        }
        return false;
    }

}

